<!DOCTYPE html>
<html> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<link rel="stylesheet" type="text/css" href="css/left.css"/>
<title>left导航</title> 
<script language="javascript"> 
window.onload = initLinkStyle; 
function initLinkStyle() { 
  if(document.getElementsByName('myset')){ 
    var arrLink = document.getElementsByName('myset'); 
    for(i = 0; i < arrLink.length; i++) { 
      var link = arrLink[i]; 
      link.className='ts_sel';     
      link.onclick = clickNav;   
    } 
    arrLink[0].className='ts_seled';
  } 
} 
/** 
 * 执行点击事件 
 * @param {Object} event 鼠标事件 
 */
function clickNav(event) { 
  var target = event.currentTarget;   
  //上次选择的a的样式 
  if(document.getElementsByName('myset')){ 
    var arrLink = document.getElementsByName('myset'); 
    for(i = 0; i < arrLink.length; i++) { 
      var link = arrLink[i]; 
      if(link.className == 'ts_seled') { 
        link.className = 'ts_sel'; 
      } 
    } 
  } 
  target.className = 'ts_seled'; 
  return true;//阻止浏览器默认事件 
} 
</script> 
</head> 
<body> 
	<div id="left_nav">
	  <ul> 
	    <li>           
	      <a href="config.html" target="showFame" name="myset">系统配置</a> 
	    </li> 
	    <li> 
	      <a href="admin.html" target="showFame" name="myset">管理员管理</a> 
	    </li>
	    <!-- <li> 
	      <a href="truck.html" target="showFame" name="myset">快递管理</a> 
	    </li> -->
	  </ul> 
  </div>
</body> 
</html>